package com.ruoyi.mall.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品和商品规格中间业务对象 mall_goods_specifications
 *
 * @author wolong
 * @date 2025-03-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MallGoodsSpecificationsBo extends BaseEntity {

    /**
     * 商品和商品规格中间表主键ID
     */
    @NotNull(message = "商品和商品规格中间表主键ID不能为空", groups = { EditGroup.class })
    private Long mallGoodsSpecificationsId;

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsId;

    /**
     * 商品规格ID
     */
    @NotNull(message = "商品规格ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long goodsSpecificationsId;


}
